/**
 * @author: 	felix
 * @email: 	307253927@qq.com
 * @date: 	2021-05-19 09:03:23
 * @last Modified by:   felix
 * @last Modified time: 2021-05-20 19:31:12
 */
"use strict";
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "@/plugins";
import "@/styles/index.less";

Vue.config.productionTip = false;
Vue.config.errorHandler = function f(err, vm) {
  let path = "";
  if (vm && vm.$route) {
    path = vm.$route.fullPath;
  }
  console && console.error(path, err);
};

if (process.env.VUE_APP_ENV === "development") {
  require("@/mocks");
}

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount("#app");
